﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;

namespace CjcPhotoPrint
{
	class DebugConverter : IValueConverter
	{
		#region IValueConverter Members

		public object Convert( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
		{
			// DEBUG: Uncomment this block to highlight the registration point (0, 0)
			/*
			if ( value is Drawing )
			{
				var group = new DrawingGroup();
				group.Children.Add( new GeometryDrawing( null, new Pen( Brushes.Red, 0.1 ), new EllipseGeometry( new Point(), 0.5, 0.5 ) ) );
				group.Children.Add( (Drawing)value );

				return group;
			}
			*/

			return value;
		}

		public object ConvertBack( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
		{
			return value;
		}

		#endregion
	}
}
